package Arrays_test;

import java.util.Arrays;

public class demo01Arrays {
    public static void main(String[] args) {
        String str = "dubvhsbvuydvbmnsdbvyudfvbjdx";
        char[] char_Array = str.toCharArray();

        Arrays.sort(char_Array);
        System.out.println(char_Array);
        //记得减一
        for (int i = char_Array.length - 1;i >= 0 ;i--){
            System.out.print(char_Array[i] + " ");
        }
    }
}
